import service from '@/utils/request'

// @Tags ProductStylesAccessorySpec
// @Summary 创建款式资讯-配件规格清单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesAccessorySpec true "创建款式资讯-配件规格清单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /productStylesAccessorySpec/createProductStylesAccessorySpec [post]
export const createProductStylesAccessorySpec = (data) => {
  return service({
    url: '/productStylesAccessorySpec/createProductStylesAccessorySpec',
    method: 'post',
    data
  })
}

// @Tags ProductStylesAccessorySpec
// @Summary 删除款式资讯-配件规格清单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesAccessorySpec true "删除款式资讯-配件规格清单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productStylesAccessorySpec/deleteProductStylesAccessorySpec [delete]
export const deleteProductStylesAccessorySpec = (params) => {
  return service({
    url: '/productStylesAccessorySpec/deleteProductStylesAccessorySpec',
    method: 'delete',
    params
  })
}

// @Tags ProductStylesAccessorySpec
// @Summary 批量删除款式资讯-配件规格清单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除款式资讯-配件规格清单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /productStylesAccessorySpec/deleteProductStylesAccessorySpec [delete]
export const deleteProductStylesAccessorySpecByIds = (params) => {
  return service({
    url: '/productStylesAccessorySpec/deleteProductStylesAccessorySpecByIds',
    method: 'delete',
    params
  })
}

// @Tags ProductStylesAccessorySpec
// @Summary 更新款式资讯-配件规格清单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.ProductStylesAccessorySpec true "更新款式资讯-配件规格清单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /productStylesAccessorySpec/updateProductStylesAccessorySpec [put]
export const updateProductStylesAccessorySpec = (data) => {
  return service({
    url: '/productStylesAccessorySpec/updateProductStylesAccessorySpec',
    method: 'put',
    data
  })
}

// @Tags ProductStylesAccessorySpec
// @Summary 用id查询款式资讯-配件规格清单
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.ProductStylesAccessorySpec true "用id查询款式资讯-配件规格清单"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /productStylesAccessorySpec/findProductStylesAccessorySpec [get]
export const findProductStylesAccessorySpec = (params) => {
  return service({
    url: '/productStylesAccessorySpec/findProductStylesAccessorySpec',
    method: 'get',
    params
  })
}

// @Tags ProductStylesAccessorySpec
// @Summary 分页获取款式资讯-配件规格清单列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取款式资讯-配件规格清单列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /productStylesAccessorySpec/getProductStylesAccessorySpecList [get]
export const getProductStylesAccessorySpecList = (params) => {
  return service({
    url: '/productStylesAccessorySpec/getProductStylesAccessorySpecList',
    method: 'get',
    params
  })
}
